﻿///***************************************************************
/// 시  스  템 : Updms.Crd.Exe
/// 단위시스템 : CRD
/// 계      층 : Execute Layer (Not Transaction)
/// 프로그램명 : Crd1013m_NT
/// 파  일  명 : Crd1013m_NT.cs
/// 설      명 : 할부사용내역
///***************************************************************
/// 수정ID 일자       이름     내용
///---------------------------------------------------------------
/// CH001  2008-07-21 송시명   최초 작성
///***************************************************************
using System.Data;
using System.EnterpriseServices;
using System.Runtime.InteropServices;

using SMFramework.Data;


namespace Updms.Crd.Exe
{
	[ComVisible(true)]
	[Transaction(TransactionOption.NotSupported)]
	[JustInTimeActivation(true)]
	public class Crd1013m_NT : Base.AppFramework.RuleBase
	{
		public Crd1013m_NT()
		{
		}

		#region GetSearchCount
		
		[AutoComplete]
		public int GetSearchCount(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ())
			{
				return _dac.GetSearchCount(lo_dp);
			}
		}
		
		#endregion

		#region SelectProcess
		
		[AutoComplete]
		public DataSet SelectProcess(DataPack lo_dp)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ())
			{
				return _dac.SelectProcess(lo_dp);
			}
		}
		
		#endregion

		#region R (SelectRepayList)

		[AutoComplete]
		public DataSet SelectRepayList(string ls_card_cd, string ls_ins_cd)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_REPAY _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_REPAY())
			{
				return _dac.Select(ls_card_cd, ls_ins_cd);
			}
		}
		
		#endregion

		#region GetLastInsCd

		[AutoComplete]
		public string GetLastInsCd(string ls_year)
		{
			_exeTimeLog.Prepare();

			using (Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ _dac = new Dac.Crd_Dac_UPDMS_CRD_INSTALLMENT_BIZ())
			{
				return _dac.GetLastInsCd(ls_year);
			}
		}

		#endregion
	}
}
